package com.xuecheng.content.convert;

import com.xuecheng.api.content.model.dto.CourseTeacherDTO;
import com.xuecheng.content.entity.CourseTeacher;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface CourseTeacherConvert {
    CourseTeacherConvert INSTANCE = Mappers.getMapper(CourseTeacherConvert.class);

    CourseTeacher dto2entity(CourseTeacherDTO dto);


    @Mapping(source = "id",target = "courseTeacherId")
    CourseTeacherDTO entity2dto(CourseTeacher po);
}
